<?php Yii::app()->clientScript->registerScript('info', "
    var custno= '$location->custno';
    var locno='$location->locno';
    ", CClientScript::POS_HEAD);?>
<?php Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl . '/js/app/salesPortal/contracts.js', CClientScript::POS_BEGIN); ?>

<div id="left-col">
    <?php
    $this->renderPartial('_side', array(
        'location' => $location,
        'customer' => $location->customer,
        'action' => 'index'
    ));


    ?>
</div>
<?php
$this->beginWidget('zii.widgets.jui.CJuiDialog', array(
    'id' => 'add-item',
    // additional javascript options for the dialog plugin
    'options' => array(
        'title' => 'Add new item',
        'autoOpen' => false,
        'width' => 700,
        'height' => 570,
    ),
));
$jobs = new Jobs();
$jobs->custno = $location->custno;
$jobs->locno = $location->locno;

$this->renderPartial('createForm', array('model' => $jobs, 'request' => 'create'));
$this->endWidget('zii.widgets.jui.CJuiDialog');
?>

<div id="right-col">

    <div class="wrap">
        <div class="container">


            <div id="breadcrumb" style="display:none;"><span style="padding-left:10px;font-size:10px;color:#777777;"
                                                             id="alsoviewing"></span></div>
            <div class="inside">

                <?php $this->renderPartial('/locations/_view', array(
                'location' => $location,
            ));?>

                <?php $this->renderPartial('/locations/_tab', array(
                'model' => $location,
            ));?>

                <br/>


                <div id="job-list">

                </div>

            </div>
            <!-- inside -->
        </div>
        <!-- container -->
    </div>
    <!-- wrap -->
    <?php $this->renderPartial('application.views.copyright'); ?>
</div> <!-- left-col -->